package group.hhsw.user.utils;

public enum ErrorCode {

    ACCOUNT_OR_PASSWORD_NOT_EXIST(6000,"账号或者密码不存在"),

    PARAM_ERROR(6001,"传递参数有误"),

    REGISTER_ERROR(6002,"注册信息有误"),

    REPEAT_REGISTER(6003,"该账户已被注册"),

    NO_LOGIN(6004,"未登录");


    private int code;

    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}